package cn.iocoder.yudao.module.xhyy.controller.admin.book.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 教材教辅新增/修改 Request VO")
@Data
public class BookSaveReqVO {

    @Schema(description = "唯一标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "12956")
    private Integer id;

    @Schema(description = "类型，教材，教参，杂志等", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "类型，教材，教参，杂志等不能为空")
    private Integer bookType;

    @Schema(description = "年级")
    private Integer grade;

    @Schema(description = "书籍名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "书籍名称不能为空")
    private String bookName;

    @Schema(description = "书籍封面", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "书籍封面不能为空")
    private String bookCover;

    @Schema(description = "编写单位")
    private String compile;

    @Schema(description = "出版社")
    private String press;

    @Schema(description = "书籍简介")
    private String introduction;

}